from bs4 import BeautifulSoup

def main():
    pageName = 'pageSave\\nipic_picture.html'
    soup = BeautifulSoup(open(pageName, encoding='utf-8'), 'html.parser')
    for img in soup.find_all('img'):
        try:
            print(img['data-src'])
        except Exception:
            pass 

if __name__ == '__main__':
    main()